package cn.example.vip.mall.seckill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("seckill_order")
@Table
public class SeckillOrder implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(type = IdType.ASSIGN_UUID)
	private String id;
	private String username;
	@Column(name = "seckill_goods_id")
	private String seckillGoodsId;
	private Integer num;
	private Double money;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "pay_time")
	private Date payTime;
	private Integer status;
	@Column(name = "weixin_transaction_id")
	private String weixinTransactionId;
}
